<div class="box-content">
		<div class="span12">
		      <form class="form-inline" action="<?php echo Yii::app()->createUrl('urlclass/index')?>" method="post">
		     	<label> id:</label><input type="text" name="classid" class="span2" value="">
		   		<label>名称:</label><input type="text" name="class_name" class="span2" value="">
		        <button class="btn" type="submit">搜索</button>
		      </form>							
		</div>
		<table class="table table-bordered table-hover table-striped">  
		  <thead>
		    <tr>
		      <th>id</th>
		      <th>名称</th>
		      <th>父类</th>
			  <th>排序</th>
		      <th>path</th>
		      <th>操作</th>
		    </tr>
		  </thead>
		  <tbody>
		   <?php $this->widget('zii.widgets.CListView', array(
					'dataProvider'=>$dataProvider,
					'itemView'=>'_classview',
					'template'=>"{items}",
			)); ?>
		    
		  </tbody>
		</table>
		<div class="pagination pagination-centered">  
	    	<?php $this->widget('CLinkPager', Page::go($dataProvider->getPagination())); ?>  
	    </div>	
		<div class="clearfix"></div>
</div>
<script type="text/javascript">
 function deleteUrlClass(classid){
	 if(confirm('你真的要删除吗？'))
	 {
		 location.href='<?php echo Yii::app()->createUrl('UrlClass/delete');?>&id='+classid;		 
	 }
 }

</script>